import {createPinia} from 'pinia'
import {useRouter} from "vue-router";

const store = createPinia()

export const ToRouterByName = (name) => {
    var r = useRouter()
    r.push({"name": name})

}

export {
    store
}
